﻿using System.Web.Services;

namespace OwnZTec.OwnZCraft.Web.Services
{
    /// <summary>
    /// Summary description for OwnZCraftServer
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class OwnZCraftServer : System.Web.Services.WebService
    {
        [WebMethod]
        public bool CheckServerStatus()
        {
            return Common.Server.ServerStatus();
        }

        [WebMethod]
        public bool IsJavaRunning()
        {
            return Common.Server.IsJavaRunning();
        }

        [WebMethod]
        public bool ShutdownServer()
        {
            return Common.Server.ShutdownServer();
        }

        [WebMethod]
        public bool StopServer()
        {
            return Common.Server.StopServer();
        }

        [WebMethod]
        public bool StartServer()
        {
            return Common.Server.StartServer();
        }
    }
}
